package cn.ainit.bj.CIPApply;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import cn.ainit.bj.CIPApply.entity.CIPApplyInfo;
import cn.ainit.sys.common.dao.BusinessBaseDao;

@Transactional
@Repository("")
public class CIPApplyDaoImpl extends BusinessBaseDao implements CIPApplyDao {

	@Override
	public boolean saveCIPApply(CIPApplyInfo cipApplyInfo) throws Exception {
		try {
			this.getSessionFactory().getCurrentSession().save(cipApplyInfo);
			return true;
		} catch (Exception e) {
			e.printStackTrace();
		}
		return false;
	}

	@Override
	public boolean updCIPApply(CIPApplyInfo cipApplyInfo) throws Exception {
		try {
			this.getSessionFactory().getCurrentSession().update(cipApplyInfo);
			return true;
		} catch (Exception e) {
			e.printStackTrace();
		}
		return false;
	}
}
